package _14_zhongjiezhe_pattern.useModel;

/**
 * @Description: 抽象中介者
 * @Auther: 2019/5/17 17:50 by zhang.jy
 */
public abstract class AbstractMediator {
	protected Purchase purchase;
	protected Sale sale;
	protected Stock stock;

	//构造函数
	public AbstractMediator() {
		purchase = new Purchase(this);
		sale = new Sale(this);
		stock = new Stock(this);
	}

	//中介者最重要的方法叫做事件方法，处理多个对象之间的关系
	public abstract void execute(String str, Object... objects);
}